var 点券 = 0;
var 抵用 = 0;
var say = "";
var 标题 = "灵魂宝戒装备灵魂吸取";
var 可升级戒指 =1112982;
var equips = [
	[1, [1003242, 1052357, 1082314, 1102294, 1132092, 1072521]],
	[2, [1003364, 1052405, 1082391, 1102322, 1132110, 1072610]],
	[3, [1122174, 1032121, 1082401, 1042231, 1062148, 1072618]],
	[4, [1003552, 1052461, 1102441, 1082433, 1132154, 1072666]],
	[5, [1003561, 1052467, 1102467, 1082438, 1132161, 1072672]],
	[6, [1003740, 1052569, 1102506, 1082498, 1132209, 1072768]],
	[7, [1003946, 1052647, 1102612, 1082540, 1132242, 1072853]],
	[8, [1003540, 1052460, 1032142, 1072664, 1082432, 1112738, 1122197, 1132152]], ];

function start() {
	chr = cm.getPlayer();皇冠白 = "#fUI/GuildMark/Mark/Etc/00009004/15#";完成 = "#fUI/UIWindow/Quest/Tab/enabled/2#";圆形 = "#fUI/UIWindow/Quest/icon3/6#";感叹号 = "#fUI/UIWindow/Quest/icon0#";粉心 = "#fEffect/CharacterEff/1042176/2/0#";红心 = "#fEffect/CharacterEff/1082229/0/0#";粉星 = "#fEffect/CharacterEff/1112925/0/1#";正方箭头 = "#fUI/Basic/BtHide3/mouseOver/0#";小熊 = "#fUI/UIWindow/UserInfo/bossPetCrown#";
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		status = -1;
	} else {
		if (status >= 0 && mode == 0) {
			cm.sendOk("感谢你的光临！");
			status = -1;
			return;
		}
		if (mode == 1) {
			status++;
		} else {
			status--;
		}
		if (status == 0) {
			var tex2 = "";
			var say = "";
			for (i = 0; i < 10; i++) {
				say += "";
			}
			say = "\r\n";
			say += "   		  		 #b" + 小熊 + "╭ " + 标题 + " ╮" + 小熊 + "#n\r\n";
			say += "   #b#e╭～#n" + 粉星 + "" + 粉星 + "#e～～～～～～～～～～～～～～～#n" + 粉星 + "#e～╮#n#k\r\n";
			say += "       #L1#" + 红心 + "[ "  + "宝石套装#k ]" + 红心 + "#l#L2#" + 红心 + "[ "  + "传说套装#k ]" + 红心 + "#l\r\n\r\n";
			say += "       #L3#" + 红心 + "[ "  + "运动套装#k ]" + 红心 + "#l#L4#" + 红心 + "[ "  + "紫金套装#k ]" + 红心 + "#l\r\n\r\n";
			say += "       #L5#" + 红心 + "[ "  + "风暴套装#k ]" + 红心 + "#l#L6#" + 红心 + "[ "  + "终极套装#k ]" + 红心 + "#l\r\n\r\n";
			say += "       #L7#" + 红心 + "[ "  + "革命套装#k ]" + 红心 + "#l#L8#" + 红心 + "[ "  + "外星套装#k ]" + 红心 + "#l\r\n\r\n";
			say += "  #b#e╰ ～～～～～～～～～～～～～～～～～～～～ ╯#n#k#l\r\n";
			say += "              #r#L100#" + 感叹号 + "{ 套装获取说明 }" + 感叹号 + "#l#k\r\n\r\n";
			cm.sendSimple(say);
		} else if (selection == 1) {属性 = 10;攻击 = 10;
			warp = 1;
			say = "";
			say += "" + 感叹号 + " [#v " + 可升级戒指 + "#]#z " + 可升级戒指 + "#[#r可吸取灵魂的戒指#k]#l\r\n";
			say += " #b#e╭～#n" + 粉星 + "" + 粉星 + "#e～～～～～～～～～～～～～～～#n" + 粉星 + "#e～╮#n#k\r\n";
			say += "" + 圆形 + " [#v 1003242##r#c 1003242##k/1 ] [ #v 1052357##r#c 1052357##k/1 ] [ #v 1082314##r#c 1082314##k/1 ]#l\r\n";
			say += "" + 圆形 + " [#v 1102294##r#c 1102294##k/1 ] [ #v 1132092##r#c 1132092##k/1 ] [ #v 1072521##r#c 1072521##k/1 ]#l\r\n";
			say += "#b#e╰ ～～～～～～～～～～～～～～～～～～～～ ╯#n#k#l\r\n";
			say += "" + 感叹号 + " 收集以上装备可强化戒指[#b 四属性+" + 属性 + " 双攻击+" + 攻击 + " #k]\r\n";
			say += "" + 感叹号 + " #d请把这6件套放进背包,强化后[#r装备会消失#k]\r\n";
			say += "" + 感叹号 + " #d宝石套装最多只能激活#k[ #r" + cm.getBossLog("宝石套装属性") + " #k/ 2 #k]#d套\r\n";
			cm.sendYesNo(say);

		} else if (selection == 2) {属性 = 10;攻击 = 10;
			warp = 2;
			say = "";
			say += "" + 感叹号 + " [#v " + 可升级戒指 + "#]#z " + 可升级戒指 + "#[#r可强化的戒指#k]#l\r\n";
			say += " #b#e╭～#n" + 粉星 + "" + 粉星 + "#e～～～～～～～～～～～～～～～#n" + 粉星 + "#e～╮#n#k\r\n";
			say += "" + 圆形 + " [#v 1003364##r#c 1003364##k/1 ] [ #v 1052405##r#c 1052405##k/1 ] [ #v 1082391##r#c 1082391##k/1 ]#l\r\n";
			say += "" + 圆形 + " [#v 1102322##r#c 1102322##k/1 ] [ #v 1132110##r#c 1132110##k/1 ] [ #v 1072610##r#c 1072610##k/1 ]#l\r\n";
			say += "#b#e╰ ～～～～～～～～～～～～～～～～～～～～ ╯#n#k#l\r\n";
			say += "" + 感叹号 + " 收集以上装备可强化戒指[#b 四属性+" + 属性 + " 双攻击+" + 攻击 + " #k]\r\n";
			say += "" + 感叹号 + " #d请把这6件套放进背包,强化后[#r装备会消失#k]\r\n";
			say += "" + 感叹号 + " #d传说套装最多只能激活#k[ #r" + chr.getBossLog1("传说套装属性", 1) + " #k/ 10 #k]#d套\r\n";
			cm.sendYesNo(say);

		} else if (selection == 3) {属性 = 15;攻击 = 15;
			warp = 3;
			say = "";
			say += "" + 感叹号 + " [#v " + 可升级戒指 + "#]#z " + 可升级戒指 + "#[#r可强化的戒指#k]#l\r\n";
			say += " #b#e╭～#n" + 粉星 + "" + 粉星 + "#e～～～～～～～～～～～～～～～#n" + 粉星 + "#e～╮#n#k\r\n";
			say += "" + 圆形 + " [#v 1122174##r#c 1122174##k/1 ] [ #v 1032121##r#c 1032121##k/1 ] [ #v 1082401##r#c 1082401##k/1 ]#l\r\n";
			say += "" + 圆形 + " [#v 1042231##r#c 1042231##k/1 ] [ #v 1062148##r#c 1062148##k/1 ] [ #v 1072618##r#c 1072618##k/1 ]#l\r\n";
			say += "#b#e╰ ～～～～～～～～～～～～～～～～～～～～ ╯#n#k#l\r\n";
			say += "" + 感叹号 + " 收集以上装备可强化戒指[#b四属性+" + 属性 + " 双攻击+" + 攻击 + " #k]\r\n";
			say += "" + 感叹号 + " #d请把这6件套放进背包,强化后[#r装备会消失#k]\r\n";
			say += "" + 感叹号 + " #d运动套装最多只能激活#k[ #r" + chr.getBossLog1("运动套装属性", 1) + " #k/ 10 #k]#d套\r\n";
			cm.sendYesNo(say);

		} else if (selection == 4) {属性 = 20;攻击 = 20;
			warp = 4;
			say = "";
			say += "" + 感叹号 + " [#v " + 可升级戒指 + "#]#z " + 可升级戒指 + "#[#r可强化的戒指#k]#l\r\n";
			say += " #b#e╭～#n" + 粉星 + "" + 粉星 + "#e～～～～～～～～～～～～～～～#n" + 粉星 + "#e～╮#n#k\r\n";
			say += "" + 圆形 + " [#v 1003552##r#c 1003552##k/1 ] [ #v 1052461##r#c 1052461##k/1 ] [ #v 1102441##r#c 1102441##k/1 ]#l\r\n";
			say += "" + 圆形 + " [#v 1082433##r#c 1082433##k/1 ] [ #v 1132154##r#c 1132154##k/1 ] [ #v 1072666##r#c 1072666##k/1 ]#l\r\n";
			say += "#b#e╰ ～～～～～～～～～～～～～～～～～～～～ ╯#n#k#l\r\n";
			say += "" + 感叹号 + " 收集以上装备可强化戒指[#b 四属性+" + 属性 + " 双攻击+" + 攻击 + " #k]\r\n";
			say += "" + 感叹号 + " #d请把这6件套放进背包,强化后[#r装备会消失#k]\r\n";
			say += "" + 感叹号 + " #d紫金套装最多只能激活#k[ #r" + chr.getBossLog1("紫金套装属性", 1) + " #k/ 10 #k]#d套\r\n";
			cm.sendYesNo(say);

		} else if (selection == 5) {属性 = 25;攻击 = 25;
			warp = 5;
			say = "";
			say += "" + 感叹号 + " [#v " + 可升级戒指 + "#]#z " + 可升级戒指 + "#[#r可强化的戒指#k]#l\r\n";
			say += " #b#e╭～#n" + 粉星 + "" + 粉星 + "#e～～～～～～～～～～～～～～～#n" + 粉星 + "#e～╮#n#k\r\n";
			say += "" + 圆形 + " [#v 1003561##r#c 1003561##k/1 ] [ #v 1052467##r#c 1052467##k/1 ] [ #v 1102467##r#c 1102467##k/1 ]#l\r\n";
			say += "" + 圆形 + " [#v 1082438##r#c 1082438##k/1 ] [ #v 1132161##r#c 1132161##k/1 ] [ #v 1072672##r#c 1072672##k/1 ]#l\r\n";
			say += "#b#e╰ ～～～～～～～～～～～～～～～～～～～～ ╯#n#k#l\r\n";
			say += "" + 感叹号 + " 收集以上装备可强化戒指[#b 四属性+" + 属性 + " 双攻击+" + 攻击 + " #k]\r\n";
			say += "" + 感叹号 + " #d请把这6件套放进背包,强化后[#r装备会消失#k]\r\n";
			say += "" + 感叹号 + " #d风暴套装最多只能激活#k[ #r" + chr.getBossLog1("风暴套装属性", 1) + " #k/ 10 #k]#d套\r\n";
			cm.sendYesNo(say);

		} else if (selection == 6) {属性 = 30;攻击 = 30;
			warp = 6;
			say = "";
			say += "" + 感叹号 + " [#v " + 可升级戒指 + "#]#z " + 可升级戒指 + "#[#r可强化的戒指#k]#l\r\n";
			say += " #b#e╭～#n" + 粉星 + "" + 粉星 + "#e～～～～～～～～～～～～～～～#n" + 粉星 + "#e～╮#n#k\r\n";
			say += "" + 圆形 + " [#v 1003740##r#c 1003740##k/1 ] [ #v 1052569##r#c 1052569##k/1 ] [ #v 1102506##r#c 1102506##k/1 ]#l\r\n";
			say += "" + 圆形 + " [#v 1082498##r#c 1082498##k/1 ] [ #v 1132209##r#c 1132209##k/1 ] [ #v 1072768##r#c 1072768##k/1 ]#l\r\n";
			say += "#b#e╰ ～～～～～～～～～～～～～～～～～～～～ ╯#n#k#l\r\n";
			say += "" + 感叹号 + " 收集以上装备可强化戒指[#b 四属性+" + 属性 + " 双攻击+" + 攻击 + " #k]\r\n";
			say += "" + 感叹号 + " #d请把这6件套放进背包,强化后[#r装备会消失#k]\r\n";
			say += "" + 感叹号 + " #d终极套装最多只能激活#k[ #r" + chr.getBossLog1("终极套装属性", 1) + " #k/ 10 #k]#d套\r\n";
			cm.sendYesNo(say);

		} else if (selection == 7) {属性 = 35;攻击 = 35;
			warp = 7;
			say = "";
			say += "" + 感叹号 + " [#v " + 可升级戒指 + "#]#z " + 可升级戒指 + "#[#r可强化的戒指#k]#l\r\n";
			say += " #b#e╭～#n" + 粉星 + "" + 粉星 + "#e～～～～～～～～～～～～～～～#n" + 粉星 + "#e～╮#n#k\r\n";
			say += "" + 圆形 + " [#v 1003946##r#c 1003946##k/1 ] [ #v 1052647##r#c 1052647##k/1 ] [ #v 1102612##r#c 1102612##k/1 ]#l\r\n";
			say += "" + 圆形 + " [#v 1082540##r#c 1082540##k/1 ] [ #v 1132242##r#c 1132242##k/1 ] [ #v 1072853##r#c 1072853##k/1 ]#l\r\n";
			say += "#b#e╰ ～～～～～～～～～～～～～～～～～～～～ ╯#n#k#l\r\n";
			say += "" + 感叹号 + " 收集以上装备可强化戒指[#b 四属性+" + 属性 + " 双攻击+" + 攻击 + " #k]\r\n";
			say += "" + 感叹号 + " #d请把这6件套放进背包,强化后[#r装备会消失#k]\r\n";
			say += "" + 感叹号 + " #d革命套装最多只能激活#k[ #r" + chr.getBossLog1("革命套装属性", 1) + " #k/ 10 #k]#d套\r\n";
			cm.sendYesNo(say);

		} else if (selection == 8) {属性 = 40;攻击 = 40;
			warp = 8;
			say = "";
			say += "" + 感叹号 + " [#v " + 可升级戒指 + "#]#z " + 可升级戒指 + "#[#r可强化的戒指#k]#l\r\n";
			say += " #b#e╭～#n" + 粉星 + "" + 粉星 + "#e～～～～～～～～～～～～～～～～#n" + 粉星 + "#e～╮#n#k\r\n";
			say += "" + 圆形 + " [#v 1003540##r#c 1003540##k/1 ][ #v 1052460##r#c 1052460##k/1 ][ #v 1032142##r#c 1032142##k/1 ][ #v 1072664##r#c 1072664##k/1 ]#l\r\n";
			say += "" + 圆形 + " [#v 1082432##r#c 1082432##k/1 ][ #v 1112738##r#c 1112738##k/1 ][ #v 1122197##r#c 1122197##k/1 ][ #v 1132152##r#c 1132152##k/1 ]#l\r\n";
			say += "#b#e╰ ～～～～～～～～～～～～～～～～～～～～～ ╯#n#k#l\r\n";
			say += "" + 感叹号 + " 收集以上装备可强化戒指[#b 四属性+" + 属性 + " 双攻击+" + 攻击 + " #k]\r\n";
			say += "" + 感叹号 + " #d请把这6件套放进背包,强化后[#r装备会消失#k]\r\n";
			say += "" + 感叹号 + " #d外星套装最多只能激活#k[ #r" + chr.getBossLog("外星套装属性", 1) + " #k/ 10 #k]#d套\r\n";
			cm.sendYesNo(say);

		} else if (selection == 100) {
			say = "    #k┏━━━━━━━━━━━━━━━━━━━━━━━┓\r\n";
			say += "       [#r宝石套装#k][#b禁地1-4关#k]   [#r传说套装#k][#b禁地5-8关#k]#l\r\n";
			say += "       [#r运动套装#k][#b禁地9-12关#k]  [#r紫金套装#k][#b禁地13-16关#k]#l\r\n";
			say += "       [#r风暴套装#k][#b禁地17-20关#k] [#r终极套装#k][#b禁地21-24关#k]#l\r\n";
			say += "       [#r革命套装#k][#b禁地25-27关#k] [#r外星套装#k][#b暂无#k]#l\r\n";
			say += "    #k┗━━━━━━━━━━━━━━━━━━━━━━━┛\r\n";
			status = -1;
			cm.sendOk(say);
		} else if (status = 1) {
			if (cm["getInventory"](1)["getItem"](1) == null) {
				cm["sendOk"]("[#v"+可升级戒指+"#]#z"+可升级戒指+"#\r\n" + 正方箭头 + " 请把#r#z"+可升级戒指+"##k放到装备栏第一格");
				cm["dispose"]();
				return;
			}
			id = cm["getInventory"](1)["getItem"](1)["getItemId"]();
			if (id != 可升级戒指) {
				cm["sendOk"]("[#v"+可升级戒指+"#]#z"+可升级戒指+"#\r\n" + 正方箭头 + " 请把#r#z"+可升级戒指+"##k放到装备栏第一格");
				cm["dispose"]();
				return;
			}
			
			var id = cm.getInventory(1).getItem(1).getItemId();
			var item = cm.getInventory(1).getItem(1).copy();
			var ii = Packages.server.MapleItemInformationProvider.getInstance();
			var type = ii.getInventoryType(id);
			var job = cm.getJob();
			var newOW ="";
			if(item.getOwner() == "")
			{
				newOW = "吸收1次";
			}
			else if(item.getOwner() == "吸收1次")
			{
				newOW = "吸收2次";	
			}
			else if(item.getOwner() == "吸收2次")
			{
				newOW = "吸收3次";	
			}
			else if(item.getOwner() == "吸收3次")
			{
				newOW = "吸收4次";	
			}
			else if(item.getOwner() == "吸收4次")
			{
				newOW = "吸收5次";	
			}
			else if(item.getOwner() == "吸收5次")
			{
				newOW = "吸收6次";	
			}
			else if(item.getOwner() == "吸收6次")
			{
				newOW = "吸收7次";	
			}
			else if(item.getOwner() == "吸收7次")
			{
				newOW = "吸收8次";	
			}
			else if(item.getOwner() == "吸收8次")
			{
				newOW = "吸收9次";	
			}
			else if(item.getOwner() == "吸收9次")
			{
				newOW = "载满灵魂";	
			}
			else
			{
				cm.sendOk("不能吸收了");
				cm.dispose();
				return;
			}
			if (warp == 1) {
				if (!cm.haveItem(1003242, 1)) {
					cm.sendOk("请将#v 1003242##b#z 1003242##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1052357, 1)) {
					cm.sendOk("请将#v 1052357##b#z 1052357##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1102294, 1)) {
					cm.sendOk("请将#v 1102294##b#z 1102294##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1072521, 1)) {
					cm.sendOk("请将#v 1072521##b#z 1072521##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1082314, 1)) {
					cm.sendOk("请将#v 1082314##b#z 1082314##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1132092, 1)) {
					cm.sendOk("请将#v 1132092##b#z 1132092##k放入背包中");
					status = -1;
				} else if (cm.getBossLog("宝石套装属性") >= 2) {
					cm.sendOk("宝石套装只能提炼2套");
					status = -1;
				} 
				else 
				{
					item.setStr(item.getStr() + 属性);
					item.setDex(item.getDex() + 属性);
					item.setInt(item.getInt() + 属性);
					item.setLuk(item.getLuk() + 属性);
					item.setWatk(item.getWatk() + 攻击);
					item.setMatk(item.getMatk() + 攻击);
					item.setOwner(newOW);
					Packages.server.MapleInventoryManipulator.removeFromSlot(cm.getC(), type, 1, 1, false);
					Packages.server.MapleInventoryManipulator.addFromDrop(cm.getC(), item, false);
					cm.gainItem(1003242, -1);
					cm.gainItem(1052357, -1);
					cm.gainItem(1102294, -1);
					cm.gainItem(1072521, -1);
					cm.gainItem(1082314, -1);
					cm.gainItem(1132092, -1);
					cm.ShowWZEffect("Effect/BasicEff.img/SkillBook/Success/0"); //成功
					cm.喇叭(1,"恭喜玩家 [" + cm.getPlayer().getName() + "] 为它的装备灵魂戒指吸收了一套宝石套装，全属性增加"+属性+"点，双攻增加了"+攻击+"点");
					cm.setBossLog("宝石套装属性");
					cm.sendOk("戒指成功吸取了宝石套装的力量，全属性增加"+属性+"点，双攻增加了"+攻击+"点");
					status = -1;
				}
			} 
			else if (warp == 2) 
			{
				if (!cm.haveItem(1132110, 1)) {
					cm.sendOk("请将#v 1132110##b#z 1132110##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1102322, 1)) {
					cm.sendOk("请将#v 1102322##b#z 1102322##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1082391, 1)) {
					cm.sendOk("请将#v 1082391##b#z 1082391##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1072610, 1)) {
					cm.sendOk("请将#v 1072610##b#z 1072610##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1052405, 1)) {
					cm.sendOk("请将#v 1052405##b#z 1052405##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1003364, 1)) {
					cm.sendOk("请将#v 1003364##b#z 1003364##k放入背包中");
					status = -1;
				} else if (chr.getBossLog("传说套装属性", 1) >= 2) {
					cm.sendOk("传说套装只能吸收2套");
					status = -1;
				} 
				else 
				{
					item.setStr(item.getStr() + 属性);
					item.setDex(item.getDex() + 属性);
					item.setInt(item.getInt() + 属性);
					item.setLuk(item.getLuk() + 属性);
					item.setWatk(item.getWatk() + 攻击);
					item.setMatk(item.getMatk() + 攻击);
					item.setOwner(newOW);
					Packages.server.MapleInventoryManipulator.removeFromSlot(cm.getC(), type, 1, 1, false);
					Packages.server.MapleInventoryManipulator.addFromDrop(cm.getC(), item, false);
					cm.gainItem(1132110, -1);
					cm.gainItem(1102322, -1);
					cm.gainItem(1082391, -1);
					cm.gainItem(1072610, -1);
					cm.gainItem(1052405, -1);
					cm.gainItem(1003364, -1);
					cm.ShowWZEffect("Effect/BasicEff.img/SkillBook/Success/0"); //成功
					cm.喇叭(1,"恭喜玩家 [" + cm.getPlayer().getName() + "] 为它的装备灵魂戒指吸收了一套传说套装，全属性增加"+属性+"点，双攻增加了"+攻击+"点");
					cm.setBossLog("传说套装属性");
					cm.sendOk("戒指成功吸取了传说套装的力量，全属性增加"+属性+"点，双攻增加了"+攻击+"点");
					status = -1;
				}
			} else if (warp == 3) {
				if (!cm.haveItem(1122174, 1)) {
					cm.sendOk("请将#v 1122174##b#z 1122174##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1082401, 1)) {
					cm.sendOk("请将#v 1082401##b#z 1082401##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1072618, 1)) {
					cm.sendOk("请将#v 1072618##b#z 1072618##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1062148, 1)) {
					cm.sendOk("请将#v 1062148##b#z 1062148##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1042231, 1)) {
					cm.sendOk("请将#v 1042231##b#z 1042231##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1032121, 1)) {
					cm.sendOk("请将#v 1032121##b#z 1032121##k放入背包中");
					status = -1;
				} else if (chr.getBossLog1("运动套装属性", 1) >= 10) {
					cm.sendOk("运动套装只能提炼十套");
					status = -1;
				} else {
					var id = cm.getInventory(1).getItem(1).getItemId();
					var item = cm.getInventory(1).getItem(1).copy();
					var ii = Packages.server.MapleItemInformationProvider.getInstance();
					var type = ii.getInventoryType(id);
					var job = cm.getJob();

					item.setStr(item.getStr() + 属性);
					item.setDex(item.getDex() + 属性);
					item.setInt(item.getInt() + 属性);
					item.setLuk(item.getLuk() + 属性);
					item.setWatk(item.getWatk() + 攻击);
					item.setMatk(item.getMatk() + 攻击);
					item.setLocked(1);
					Packages.server.MapleInventoryManipulator.removeFromSlot(cm.getC(), type, 1, 1, false);
					Packages.server.MapleInventoryManipulator.addFromDrop(cm.getC(), item, false);
					cm.gainItem(1122174, -1);
					cm.gainItem(1082401, -1);
					cm.gainItem(1072618, -1);
					cm.gainItem(1062148, -1);
					cm.gainItem(1042231, -1);
					cm.gainItem(1032121, -1);
					cm.ShowWZEffect("Effect/BasicEff.img/SkillBook/Success/0"); //成功
					chr.setBossLog1("运动套装属性", 1);
					cm.sendOk("运动套装属性强化成功");
					status = -1;
				}
			} else if (warp == 4) {
				if (!cm.haveItem(1132154, 1)) {
					cm.sendOk("请将#v 1132154##b#z 1132154##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1102441, 1)) {
					cm.sendOk("请将#v 1102441##b#z 1102441##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1082433, 1)) {
					cm.sendOk("请将#v 1082433##b#z 1082433##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1072666, 1)) {
					cm.sendOk("请将#v 1072666##b#z 1072666##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1052461, 1)) {
					cm.sendOk("请将#v 1052461##b#z 1052461##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1003552, 1)) {
					cm.sendOk("请将#v 1003552##b#z 1003552##k放入背包中");
					status = -1;
				} else if (chr.getBossLog1("紫金套装属性", 1) >= 10) {
					cm.sendOk("紫金套装只能提炼十套");
					status = -1;
				} else {
					var id = cm.getInventory(1).getItem(1).getItemId();
					var item = cm.getInventory(1).getItem(1).copy();
					var ii = Packages.server.MapleItemInformationProvider.getInstance();
					var type = ii.getInventoryType(id);
					var job = cm.getJob();

					item.setStr(item.getStr() + 属性);
					item.setDex(item.getDex() + 属性);
					item.setInt(item.getInt() + 属性);
					item.setLuk(item.getLuk() + 属性);
					item.setWatk(item.getWatk() + 攻击);
					item.setMatk(item.getMatk() + 攻击);
					item.setLocked(1);
					Packages.server.MapleInventoryManipulator.removeFromSlot(cm.getC(), type, 1, 1, false);
					Packages.server.MapleInventoryManipulator.addFromDrop(cm.getC(), item, false);
					cm.gainItem(1132154, -1);
					cm.gainItem(1102441, -1);
					cm.gainItem(1082433, -1);
					cm.gainItem(1072666, -1);
					cm.gainItem(1052461, -1);
					cm.gainItem(1003552, -1);
					cm.ShowWZEffect("Effect/BasicEff.img/SkillBook/Success/0"); //成功
					chr.setBossLog1("紫金套装属性", 1);
					cm.sendOk("紫金套装属性强化成功");
					status = -1;
				}
			} else if (warp == 5) {
				if (!cm.haveItem(1132161, 1)) {
					cm.sendOk("请将#v 1132161##b#z 1132161##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1102467, 1)) {
					cm.sendOk("请将#v 1102467##b#z 1102467##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1082438, 1)) {
					cm.sendOk("请将#v 1082438##b#z 1082438##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1072672, 1)) {
					cm.sendOk("请将#v 1072672##b#z 1072672##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1052467, 1)) {
					cm.sendOk("请将#v 1052467##b#z 1052467##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1003561, 1)) {
					cm.sendOk("请将#v 1003561##b#z 1003561##k放入背包中");
					status = -1;
				} else if (chr.getBossLog1("风暴套装属性", 1) >= 10) {
					cm.sendOk("风暴套装只能提炼十套");
					status = -1;
				} else {
					var id = cm.getInventory(1).getItem(1).getItemId();
					var item = cm.getInventory(1).getItem(1).copy();
					var ii = Packages.server.MapleItemInformationProvider.getInstance();
					var type = ii.getInventoryType(id);
					var job = cm.getJob();

					item.setStr(item.getStr() + 属性);
					item.setDex(item.getDex() + 属性);
					item.setInt(item.getInt() + 属性);
					item.setLuk(item.getLuk() + 属性);
					item.setWatk(item.getWatk() + 攻击);
					item.setMatk(item.getMatk() + 攻击);
					item.setLocked(1);
					Packages.server.MapleInventoryManipulator.removeFromSlot(cm.getC(), type, 1, 1, false);
					Packages.server.MapleInventoryManipulator.addFromDrop(cm.getC(), item, false);
					cm.gainItem(1132161, -1);
					cm.gainItem(1102467, -1);
					cm.gainItem(1082438, -1);
					cm.gainItem(1072672, -1);
					cm.gainItem(1052467, -1);
					cm.gainItem(1003561, -1);
					cm.ShowWZEffect("Effect/BasicEff.img/SkillBook/Success/0"); //成功
					chr.setBossLog1("风暴套装属性", 1);
					cm.sendOk("风暴套装属性强化成功");
					status = -1;
				}
			} else if (warp == 6) {
				if (!cm.haveItem(1132209, 1)) {
					cm.sendOk("请将#v 1132209##b#z 1132209##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1102506, 1)) {
					cm.sendOk("请将#v 1102506##b#z 1102506##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1082498, 1)) {
					cm.sendOk("请将#v 1082498##b#z 1082498##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1072768, 1)) {
					cm.sendOk("请将#v 1072768##b#z 1072768##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1052569, 1)) {
					cm.sendOk("请将#v 1052569##b#z 1052569##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1003740, 1)) {
					cm.sendOk("请将#v 1003740##b#z 1003740##k放入背包中");
					status = -1;
				} else if (chr.getBossLog1("终极套装属性", 1) >= 10) {
					cm.sendOk("终极套装只能提炼十套");
					status = -1;
				} else {
					var id = cm.getInventory(1).getItem(1).getItemId();
					var item = cm.getInventory(1).getItem(1).copy();
					var ii = Packages.server.MapleItemInformationProvider.getInstance();
					var type = ii.getInventoryType(id);
					var job = cm.getJob();

					item.setStr(item.getStr() + 属性);
					item.setDex(item.getDex() + 属性);
					item.setInt(item.getInt() + 属性);
					item.setLuk(item.getLuk() + 属性);
					item.setWatk(item.getWatk() + 攻击);
					item.setMatk(item.getMatk() + 攻击);
					item.setLocked(1);
					Packages.server.MapleInventoryManipulator.removeFromSlot(cm.getC(), type, 1, 1, false);
					Packages.server.MapleInventoryManipulator.addFromDrop(cm.getC(), item, false);
					cm.gainItem(1132209, -1);
					cm.gainItem(1102506, -1);
					cm.gainItem(1082498, -1);
					cm.gainItem(1072768, -1);
					cm.gainItem(1052569, -1);
					cm.gainItem(1003740, -1);
					cm.ShowWZEffect("Effect/BasicEff.img/SkillBook/Success/0"); //成功
					chr.setBossLog1("终极套装属性", 1);
					cm.sendOk("终极套装属性强化成功");
					status = -1;
				}
			} else if (warp == 7) {
				if (!cm.haveItem(1132242, 1)) {
					cm.sendOk("请将#v 1132242##b#z 1132242##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1102612, 1)) {
					cm.sendOk("请将#v 1102612##b#z 1102612##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1072853, 1)) {
					cm.sendOk("请将#v 1072853##b#z 1072853##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1082540, 1)) {
					cm.sendOk("请将#v 1082540##b#z 1082540##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1052647, 1)) {
					cm.sendOk("请将#v 1052647##b#z 1052647##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1003946, 1)) {
					cm.sendOk("请将#v 1003946##b#z 1003946##k放入背包中");
					status = -1;
				} else if (chr.getBossLog1("革命套装属性", 1) >= 10) {
					cm.sendOk("革命套装只能提炼十套");
					status = -1;
				} else {
					var id = cm.getInventory(1).getItem(1).getItemId();
					var item = cm.getInventory(1).getItem(1).copy();
					var ii = Packages.server.MapleItemInformationProvider.getInstance();
					var type = ii.getInventoryType(id);
					var job = cm.getJob();

					item.setStr(item.getStr() + 属性);
					item.setDex(item.getDex() + 属性);
					item.setInt(item.getInt() + 属性);
					item.setLuk(item.getLuk() + 属性);
					item.setWatk(item.getWatk() + 攻击);
					item.setMatk(item.getMatk() + 攻击);
					item.setLocked(1);
					Packages.server.MapleInventoryManipulator.removeFromSlot(cm.getC(), type, 1, 1, false);
					Packages.server.MapleInventoryManipulator.addFromDrop(cm.getC(), item, false);
					cm.gainItem(1132242, -1);
					cm.gainItem(1102612, -1);
					cm.gainItem(1082540, -1);
					cm.gainItem(1072853, -1);
					cm.gainItem(1052647, -1);
					cm.gainItem(1003946, -1);
					cm.ShowWZEffect("Effect/BasicEff.img/SkillBook/Success/0"); //成功
					chr.setBossLog1("革命套装属性", 1);
					cm.sendOk("革命套装属性强化成功");
					status = -1;
				}
			} else if (warp == 8) {
				if (!cm.haveItem(1132152, 1)) {
					cm.sendOk("请将#v 1132152##b#z 1132152##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1122197, 1)) {
					cm.sendOk("请将#v 1122197##b#z 1122197##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1112738, 1)) {
					cm.sendOk("请将#v 1112738##b#z 1112738##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1082432, 1)) {
					cm.sendOk("请将#v 1082432##b#z 1082432##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1072664, 1)) {
					cm.sendOk("请将#v 1072664##b#z 1072664##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1052460, 1)) {
					cm.sendOk("请将#v 1052460##b#z 1052460##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1032142, 1)) {
					cm.sendOk("请将#v 1032142##b#z 1032142##k放入背包中");
					status = -1;
				} else if (!cm.haveItem(1003540, 1)) {
					cm.sendOk("请将#v 1003540##b#z 1003540##k放入背包中");
					status = -1;
				} else if (chr.getBossLog1("外星套装属性", 1) >= 10) {
					cm.sendOk("外星套装只能提炼十套");
					status = -1;
				} else {
					var id = cm.getInventory(1).getItem(1).getItemId();
					var item = cm.getInventory(1).getItem(1).copy();
					var ii = Packages.server.MapleItemInformationProvider.getInstance();
					var type = ii.getInventoryType(id);
					var job = cm.getJob();

					item.setStr(item.getStr() + 属性);
					item.setDex(item.getDex() + 属性);
					item.setInt(item.getInt() + 属性);
					item.setLuk(item.getLuk() + 属性);
					item.setWatk(item.getWatk() + 攻击);
					item.setMatk(item.getMatk() + 攻击);
					item.setLocked(1);
					Packages.server.MapleInventoryManipulator.removeFromSlot(cm.getC(), type, 1, 1, false);
					Packages.server.MapleInventoryManipulator.addFromDrop(cm.getC(), item, false);
					cm.gainItem(1132152, -1);
					cm.gainItem(1122197, -1);
					cm.gainItem(1112738, -1);
					cm.gainItem(1082432, -1);
					cm.gainItem(1072664, -1);
					cm.gainItem(1052460, -1);
					cm.gainItem(1032142, -1);
					cm.gainItem(1003540, -1);
					cm.ShowWZEffect("Effect/BasicEff.img/SkillBook/Success/0"); //成功
					chr.setBossLog1("外星套装属性", 1);
					cm.sendOk("外星套装属性强化成功");
					status = -1;
				}
			}
		}
	}
}

function _CheckShow(id) {
	var isShow = true;
	for (var i = 0; i < equips.length; i++) {
		if (equips[i][0] == id) {
			for (var k = 0; k < equips[i][1].length; k++) {
				if (cm.itemQuantity(equips[i][1][k]) <= 0) {
					isShow = false;
				}
			}
			break;
		}
	}
	return isShow;
}


//╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯
//╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯╰╯